package pro.jiug.kExcel.controller;

import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;
import pro.jiug.kExcel.entity.User;
import pro.jiug.kExcel.service.UserService;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 视图Controller
 *
 * @author Keffett
 * @since 2021-02-19
 */
@Controller
public class ViewController {

    @RequestMapping("/")
    public String toLogin(){
        return "index";
    }

    @RequestMapping("/p/{page}")
    public String view(@PathVariable("page") String page) {
        return page;
    }

}

